package xin.vote.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import xin.vote.dao.MatchPKInfoMapper;
import xin.vote.model.MatchPKInfo;
import xin.vote.service.IMatchPKInfoService;

@Service
public class MatchPKInfoService implements IMatchPKInfoService{
	
	@Resource
	private MatchPKInfoMapper matchpkinfomapper;

	//删除
	@Override
	public int deleteMatchPKInfoByPrimaryKey(MatchPKInfo m) {
		return matchpkinfomapper.deleteByPrimaryKey(m);
	}

	//动态查询所有对战信息
	@Override
	public List<MatchPKInfo> findAllMatchPKInfodmc(MatchPKInfo m) {
		return matchpkinfomapper.selectAllMatchPKInfodmc(m);
	}

	@Override
	public int addMatchPKInfoSelective(MatchPKInfo m) {
		return matchpkinfomapper.insertMatchPKInfoSelective(m);
	}

	@Override
	public int updateByPrimaryKeySelective(MatchPKInfo m) {
		return matchpkinfomapper.updateByPrimaryKeySelective(m);
	}
	
	//动态添加对战情况
	
}

